
from November_the_twenty_sixth.class_Animal import Rabbit, Snail
from November_the_twenty_sixth.class_Example import Example1
from November_the_twenty_sixth.class_Felines import Cat
from November_the_twenty_sixth.class_PersonInfo import PersonInfo
from November_the_twenty_sixth.class_Test import Test
from November_the_twenty_sixth.class_aaa import aaa
from November_the_twenty_sixth.class_car import Car
from November_the_twenty_sixth.class_person import Person
from November_the_twenty_sixth.class_student import Student
from November_the_twenty_sixth.class_Amphibian_and_Frog_Amphibian import Frog

person_one = Person('黄楠','男')
person_one.introduce()
person_tow = Person('黄柳','女')
person_tow.introduce()



person = PersonInfo()
person.get_weight()

# 对象的创建与使用
# 对象的创建
my_car= Car()

# 访问对象成员
my_car.drive()
my_car.stop()
print(my_car.wheels)


# 调用类方法
test = Test()
test.use_classmet()
Test.use_classmet()


# 修改类属性
print(aaa.count)
aaa.add_two()
print(aaa.count)


# 静态方法
example = Example1()
example.static_method()
Example1.static_method()


# 继承
# 单继承
frog = Frog()
print(frog.name)
frog.features()
frog.attr()


# 多继承
stu = Student()
stu.receive_eng_kow()
stu.receive_math_kow()
stu.study()


# 方法的重写
cat = Cat()
cat.speciality()

# super（）函数
cat = Cat()
cat.speciality()


# 多态
def text(obj):
    obj.move()
rabbit = Rabbit()
text(rabbit)
snail = Snail()
text(snail)

















